package com.aiyige.page.my.settings;

import com.aiyige.MyApp;
import com.aiyige.utils.prefs.Prefs;

/**
 * Created by xiachao on 2017/12/19.
 */

public class ConfigUltis {

    private static Prefs getPrefs() {
        return MyApp.getInstance().getPrefs();
    }


    public static boolean isEnableMessagePush() {
        return getPrefs().getBoolean("messagePush",true);
    }

    public static void setMessagePushEnable(boolean enable) {
        getPrefs().putBoolean("messagePush",enable);
    }

    public static boolean isEnableGprsNotification() {
        return getPrefs().getBoolean("gprsNotification",true);
    }

    public static void setGprsNotificationEnable(boolean enable) {
        getPrefs().putBoolean("gprsNotification",enable);
    }
}
